<template>
  <TabBar>
    <TabBarItem path="/home" >
      <template v-slot:item-icon>
        <img src="~assets/img/nav/home.svg" alt="" />
      </template>
      <template v-slot:item-icon-active>
        <img src="~assets/img/nav/home_active.svg" alt="" />
      </template>
       <template v-slot:item-text> 首页 </template>
    </TabBarItem>

    <TabBarItem path="/sort" >
      <template v-slot:item-icon>
        <img src="~assets/img/nav/sort.svg" alt="" />
      </template>
      <template v-slot:item-icon-active>
        <img src="~assets/img/nav/sort_active.svg" alt="" />
      </template>
       <template v-slot:item-text> 分类 </template>
    </TabBarItem>

    <TabBarItem path="/shopcar" >
      <template v-slot:item-icon>
        <img src="~assets/img/nav/cart.svg" alt="" />
      </template>
      <template v-slot:item-icon-active>
        <img src="~assets/img/nav/cart_active.svg" alt="" />
      </template>
       <template v-slot:item-text> 购物车 </template>
    </TabBarItem>

    <TabBarItem path="/my">
      <template v-slot:item-icon>
        <img src="~assets/img/nav/profile.svg" alt="" />
      </template>
      <template v-slot:item-icon-active>
        <img src="~assets/img/nav/profile_active.svg" alt="" />
      </template>
       <template v-slot:item-text> 我的 </template>
    </TabBarItem>
  </TabBar>
</template>

<script>
import TabBar from "components/tab-bar/TabBar.vue";
import TabBarItem from "components/tab-bar/TabBarItem.vue";

export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style>
</style>